﻿//test if it is saved when I click for save. JozsefG on the 23th February

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ATM_Machine
{
    class WelcomeScreen
    {
        static void Main(string[] args)
        {
            Console.Clear();

            string accountNumber;
            do
            {
                Console.WriteLine("Welcome to CSharp Begin ATM Facilty");
                Console.WriteLine("***********************************");
                Console.WriteLine("");
                Console.Write("Please enter your account number and press enter: ");
                accountNumber = Console.ReadLine();
            } while (!ConsoleValidation.IsPresent(accountNumber) || //Check if account Number is present
                     !ConsoleValidation.IsInteger(accountNumber));  //And if its a valid number ok
            Console.WriteLine("You entered Account Number: " + accountNumber);
            Console.Read(); //Press a key to exit
        }
    }

}
